<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="./js/bootstrap-3.4.1-dist/css/bootstrap-theme.min.css">
    <link rel="stylesheet" href="./js/bootstrap-3.4.1-dist/css/bootstrap.min.css">
    <script src="./js/jquery-3.6.0.min.js"></script>
    <script src="./js/bootstrap-3.4.1-dist/js/bootstrap.min.js"></script>
    <link rel="stylesheet" href="./js/bootstrap-3.4.1-dist/css/bootoast.css">
    <script src="./js/bootstrap-3.4.1-dist/js/bootoast.js"></script>
    <style>
      body{
			background: url(./img/bj1.png);
		}
		#div1{
			border-radius: 6px;
			background-color: #ffffff;
			width: 500px;
			height: 400px;
			box-shadow: 5px 5px 5px #aaaaaa;
			margin-top: 150px;
			position: absolute;
			left: 550px;
			top: 0.5px;
		}
    #dl{
			width:120px;
      height:40px;
		}
		#zc{
			position: absolute;
			left: 265px;
			width:120px;
      height:40px;
		}
    a{
			margin-left: 210px;
		}
    </style>
    
</head>
<body>
    <script>
        function login(){
           if($("#inputEmail3").val() != "" && $("#inputPassword3").val() != ""){
            bootoast({
                message:"登录成功！",
                type:"success",
                position:"top",
                timeout:2
            })
           } 
           else{
            bootoast({
                message:"登录失败，用户名和密码不能为空！",
                type:"danger",
                position:"top",
                timeout:2
            })
           }
        }
    </script>
    
     <div class="container"> 
      <div id="div1">
        <img src="./img/log.png" class="img-responsive" style="width: 460px; height: 110px; position: absolute; margin-left: 20px; margin-top: 0px;">
        <div class="row" style="width: 100%; height:130px;"></div>
        <div class="row">
           

            <div class="col-md-3"></div>
            <div class="col-md-11">
             
                <div id="login">
                                    <form class="form-horizontal" style="margin-left:18px;">
                    <div class="form-group" >
                      <label for="inputEmail3" class="col-sm-2 control-label">用户名:</label>
                      <div class="col-sm-10">
                        <input type="email" class="form-control" id="inputEmail3" placeholder="请输入用户名">
                      </div>
                    </div>
                    <div class="form-group">
                      <label for="inputPassword3" class="col-sm-2 control-label">密码:</label>
                      <div class="col-sm-10">
                        <input type="password" class="form-control" id="inputPassword3" placeholder="请输入密码">
                      </div>
                    </div>
                    <div class="form-group">
                      <div class="col-sm-offset-2 col-sm-10">
                        <div class="checkbox">
                          <label>
                            <input type="checkbox"> 记住密码
                          </label>
                          <a href="#">忘记密码</a><br>
                        </div>
                      </div>
                    </div>
                    <div class="form-group">
                      <div class="col-sm-offset-2 col-sm-10" style="margin-top:20px;">
                        <button type="button" id="dl" class="btn-primary" onclick="login();">登录</button>
		<button type="button" id="zc" class="btn-success">注册</button>
                      </div>
                    </div>
                  </form>
                </div>
                
            
            </div>
            <div class="col-md-3"></div>
                
            
        </div>
      </div>
      
     </div>
     
</body>
</html>